<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- 主页 -->
<!DOCTYPE html>
<html lang="en">
<head>
	<base href="<%=basePath%>">
    <meta charset="UTF-8">
    <title>众筹中原管理系统</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="../../img/icon.png" type="image/x-icon"/>
    <!-- load css -->
    <link rel="stylesheet" type="text/css" href="../../css/font/iconfont.css?v=1.0.0" media="all">
    <link rel="stylesheet" type="text/css" href="../../js/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="../../css/jqadmin.css?v=2.0.0" media="all">
    <link rel="stylesheet" href="../../css/business/login/login.css" />
    <style type="text/css">
	    .layui-logo{
		    float: left;
		    min-width: 150px;
		    position: relative;
		    padding-right: 30px;
	    }
    </style>
</head>

<body >
    <ul class='right-click-menu'>
        <li><a href='javascript:;' data-event='fresh'>刷新</a></li>
        <li><a href='javascript:;' data-event='close'>关闭</a></li>
        <li><a href='javascript:;' data-event='other'>关闭其它</a></li>
        <li><a href='javascript:;' data-event='all'>关闭全部</a></li>
    </ul>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header" >
            <!-- logo区域 -->
            <div class="jqadmin-logo-box">
                <a class="logo" href="javascript:;" title="众筹中原管理系统">
                    众筹中原管理系统
                </a>
                <!-- <div style="margin: 10px 10px 0 10px;float: left;">
	                <img src="image/common/title.png" >
                </div> -->
                <div class="menu-type" style="float: left;">
                	<i class="iconfont" icon="&#xe625;">&#xe625;</i>
                </div>
            </div>
            <!-- 主菜单区域 -->
            <div class="jqadmin-main-menu">
                <ul class="layui-nav clearfix" id="menu" lay-filter="main-menu">
                   <script id="menu-tpl" type="text/html" data-params='{"url":"login/queryMenu.do","listid":"menu"}'>
    				{{# layui.each(d.list, function(index, item){ }}
    					<li class="layui-nav-item {{# if(index==0){ }}layui-this{{# } }}">
        					<a href="javascript:;" data-title="{{item.name}}">
								<i class="iconfont  {{# if(!d.showIcon){ }} hide-icon  {{# } }}">
									{{item.iconfont}}
								</i>
								<span style="font-size: 16px">{{item.name}}</span>
							</a>
    					</li>
    				{{# }); }}
					</script> 
                </ul>
            </div>

            <!-- 头部右侧导航 -->
            <div class="header-right" >
                <ul class="layui-nav jqadmin-header-item right-menu">
                    <li class="layui-nav-item first">
                        <a href="javascript:;">
                            <%--  "UserInfo"已设置到session域，需要处理为登陆的用户名  --%>
                            <cite>${UserInfo.userName}</cite>
                            <span class="layui-nav-more"></span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="tab-menu tab-menu-css">
                                <a href="javascript:;" value="123" data-url="login/updPassword.do"
                                       data-title="修改密码" > 
                                	<i class="iconfont" data-icon='&#xe689;'>&#xe689;</i><span>修改密码</span>
                                </a>
                            </dd>
                            <dd>
                                <a id="exit" href="javaScript:void(0)"><i class="iconfont ">&#xe68a; </i>退出</a>
                            </dd>
                        </dl>
                    </li>
                    <!-- <li class="layui-nav-item tab-menu">
	                    <a class="msg" href="javascript:;" data-url="msg.html" data-title="站内信息">
		                    <i class="iconfont" data-icon='&#xe63c;'>
		                    	&#xe63c; 
		                    </i>
	                    	<span class="msg-num">1</span>
	                    </a>
                    </li> -->
                </ul>
                <button title="刷新" class="layui-btn layui-btn-normal fresh-btn">
                	<i class="iconfont">&#xe782;</i> 
                </button>
            </div>
        </div>

        <!-- 左侧导航-->
        <div class="layui-side layui-bg-black jqamdin-left-bar" style="margin-top: 0px">
            <div class="layui-side-scroll">
                <!--子菜单项-->
                <div id="submenu"></div>
 		<script id="submenu-tpl" type="text/html">
    		{{# layui.each(d.list, function(index, menu){ }}
    		<div class="sub-menu">
        		<ul class="layui-nav layui-nav-tree">
            		{{# layui.each(menu.sub, function(index, submenu){ }} 
					{{# if(submenu.sub && submenu.sub.length>0){ }}
            			<li class="layui-nav-item" data-bind="0">
                			<a href="javascript:;" data-title="{{submenu.name}}">
                    			<i class="iconfont {{# if(!d.showIcon){ }} hide-icon  {{# } }}">{{submenu.iconfont}}</i>
                    			<span>{{submenu.name}}</span>
                    			<em class="layui-nav-more"></em>
                			</a>
                			<dl class="layui-nav-child">
                    			{{# layui.each(submenu.sub, function(index, secMenu){ }}
                    			<dd>
                        			<a href="javascript:;" data-url="<%=basePath %>{{secMenu.url}}" data-title="{{secMenu.name}}">
                            			<i class="iconfont  {{# if(!d.showIcon){ }} hide-icon  {{# } }}" 
											data-icon='{{secMenu.iconfont}}'>{{secMenu.iconfont}}
										</i>
                            			<span>{{secMenu.name}}</span>
                        			</a>
                    			</dd>
                    			{{# }); }}
                			</dl>
            			</li>
            		{{# }else{ }}
            			<li class="layui-nav-item">
                			<a href="javascript:;" data-url="<%=basePath %>{{submenu.url}}" data-title="{{submenu.name}}">
                    			<i class="iconfont  {{# if(!d.showIcon){ }} hide-icon  {{# } }}" 
									data-icon='{{submenu.iconfont}}'>{{submenu.iconfont}}
								</i>
                    			<span>{{submenu.name}}</span>
                			</a>
            			</li>
            		{{# } }} {{# }); }}
        		</ul>
    		</div>
    		{{# }); }}
		</script>
            </div>
        </div>

        <!-- 左侧侧边导航结束 -->
        <!-- 右侧主体内容 -->
        <div class="layui-body jqadmin-body" style="margin-top: 0px">

            <div class="layui-tab layui-tab-card jqadmin-tab-box" id="jqadmin-tab" lay-filter="tabmenu" lay-notAuto="true">
                <ul class="layui-tab-title">
                    <li class="layui-this" id="admin-home" lay-id="0" fresh=1>
	                    <i class="iconfont">&#xe67f;</i>
	                    <em>后台首页</em>
                    </li>
                </ul>
                <div class="menu-btn" title="显示左则菜单">
<%--                    <i class="iconfont" data-icon='&#xe625;'>&#xe625;</i>--%>
                    <i class="iconfont" data-icon='&#xe625;'>显示左则菜单</i>
                </div>
                <div class="tab-move-btn">
                    <span>更多<i class="iconfont">&#xe690;</i></span>
                </div>
                <div class="layui-tab-content" style="padding: 0px;">
                    <div class="layui-tab-item layui-show">
                    	<jsp:include page="./console.jsp"></jsp:include>
                    </div>
                </div>
            </div>
        </div>
        <!-- 底部区域 -->
        <div class="layui-footer jqadmin-foot">
            <div class="layui-mian">
                <p class="jqadmin-copyright">
                    <span class="layui"><a  target="_blank">&copy;----神农山一队精英-----</a>  </span>
                                       
                </p>
            </div>
        </div>
    </div>
    <div class="my-tip">
        <img src="#" alt="123123" />
    </div>
    <ul class="menu-list" id="menu-list"></ul>
</body>
<script type="text/javascript" src="/js/layui/layui.js"></script>
<script type="text/javascript" src="/js/common/jquery-1.11.3.js"></script>
<script type="text/javascript">
    var global = {};
    layui.config({
        base: "js/",
        version: "2.0.0"
    }).extend({
        jqelem: "layui/lay/jqmodules/jqelem",
        jqmenu: "layui/lay/jqmodules/jqmenu",
        tabmenu: "layui/lay/jqmodules/tabmenu",
        jqajax: "layui/lay/jqmodules/jqajax",
        index:"business/index/index"
    }).use("index");
    $(function(){
    	$("#exit").on("click", function(){
    		window.sessionStorage.clear();
        	window.top.location = "login/logout.do";
        });
    });
</script>
<!-- 页签列表模板 -->
<script id="menu-list-tpl" type="text/html">
    {{# layui.each(d.list, function(index, item){ }}
    <li>
        <a href="javascript:;" data-url="{{item.href}}" data-title="{{item.title}}">
            <i class="iconfont" data-icon='{{item.icon}}'>{{item.icon}}</i>
            <span>{{item.title}}</span>
        </a>
    </li>
    {{# }); }}
</script>
</html>